<?php
/*
 * @Author: ica caijianling@outlook.com
 * @Date: 2024-02-27 18:55:10
 * @LastEditors: ica caijianling@outlook.com
 * @LastEditTime: 2024-02-27 19:04:56
 * @FilePath: /api-itpno-app/routes/api.php
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

use App\Http\Controllers\QwenController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "api" middleware group. Make something great!
|
*/

Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
    return $request->user();
});

Route::middleware('prevent.concurrent.requests')->post('/qwen/ask/', [QwenController::class, 'ask']);
